/*
 * main.cpp
 *
 *  Created on: May 28, 2013
 *      Author: Lucifer
 */
#include "pch.h"
#include "io/REFSocketAcceptor.h"
#include "io/REFSocketConnection.h"

#include "event/events.h"
#include "event/REFServiceRegistry.h"

using namespace BFX;

#include <locale.h>
#include <sys/timeb.h>

INT64 CurrentTimeMillis()
{
	timeb t;
	ftime(&t);
	return 1000 * t.time + t.millitm;
}

// 10.150.151.108
// 255.255.252.0
// 10.150.150.1

int main(int argc, char* argv[])
{
	setbuf(stdout, NULL);

	REF<REFAutoreleasePool> pAutoreleasePool = new REFAutoreleasePool();

	Time time = Time::MaxValue().ToUtcTime();

	int year = time.GetYear();
	int month = time.GetMonth();
	int day = time.GetDay();
	int hour = time.GetHour();
	int minute = time.GetMinute();
	int second = time.GetSecond();

	printf("y=%d, M=%d, d=%d, h=%d, m=%d, s=%d\n", year, month, day, hour, minute, second);
	fflush(stdout);

}
